package com.li.mapper;

import com.li.pojo.Violation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface ViolationMapper {
  //获取违纪总数
  int getTotal(Map<String,Object> queryMap);
  
  //获取所有违纪
  List<Violation> findList(Map<String,Object> queryMap);
  
  //添加违纪
  Integer add(@Param("violation") Violation ice);
  
  Integer updateById(@Param("violation") Violation ice);
  
  Integer deleteById(@Param("id") Integer id);
  
  
  
  
}
